<html>
<head>
	你好
    <script type="text/javascript">
	 var request_id;
	
      function doQuery() {
	request_id=window.cefQuery({
          request: document.getElementById("query").value,
          persistent: true,
          onSuccess: function(response) { alert(response); },
          onFailure: function(code, msg) { alert(code + " - " + msg); }
        }
        );
      }
	 
	  function doQuery1() {
        request_id=window.cefQuerytest({
          request: document.getElementById("query1").value,
          persistent: true,
          onSuccess: function(response) { alert(response); },
          onFailure: function(code, msg) { alert(code + " - " + msg); }
        }
        );
      }
	  
	 function doQueryCancel() {
        window.cefQueryCancel(request_id);
      }
    </script>
<meta charset="UTF-8">
  <title>Test Cef Query</title>
</head>

<body>
<form>
Query String1: <input type="text" id="query" value="你好CefQuery"/>&nbsp;&nbsp;<input  type="button" value="SendQuery" onclick="doQuery()"/>&nbsp;&nbsp;<input  type="button" value="Cancel" onclick="doQueryCancel()"/>
Query String2: <input type="text" id="query1" value="GiveMeMoney"/>&nbsp;&nbsp;
<input  type="button" value="SendQuery1" onclick="doQuery1()"/>
</form>
</form>
</body>
</html>